package com.foreknow.mapping;

import com.foreknow.model.Gusetbook;

import java.sql.ResultSet;
import java.sql.SQLException;

public class GuestbookMapping implements EntityMapping {
    @Override
    public Object mapping(ResultSet rs) throws SQLException {
        Gusetbook gb=new Gusetbook();
        gb.setId(rs.getInt("id"));
        gb.setName(rs.getString("name"));
        gb.setPhone(rs.getString("phone"));
        gb.setEmail(rs.getString("Email"));
        gb.setTitle(rs.getString("title"));
        gb.setContent(rs.getString("content"));
        gb.setCreatedtime(rs.getString("createdtime"));
        return gb;
    }
}
